package test.a;

import pool2.Task;
import pool2.ThreadPoolManager;
import billing.system.http.HttpUtils;
import billing.system.logger.SysLog;

public class C extends Task {
	String url = null;

	public C(String url) {
		this.url = url;
	}

	@Override
	public void run() {
		callback(HttpUtils.get(url));
	}

	void callback(String html) {
	}

	public static void main(String[] args) {
		//SysLog.initialize();
		final ThreadPoolManager threadpoolmanager = new ThreadPoolManager("SimpleThreadPoll");
		threadpoolmanager.addTask(new C("http://v.qq.com") {
			void callback(String html) {
				SysLog.o("q.qq.html", html, true);
			}
		});
		threadpoolmanager.threadPoolStart();
	}

}
